/**
 * 用户信息 存取
 */

const UserKey = 'UserInfo'

export function getUserInfo () {
  return JSON.parse(localStorage.getItem(UserKey))
}

export function setUserInfo (user) {
  return localStorage.setItem(UserKey, JSON.stringify(user))
}

export function removeUserInfo () {
  return localStorage.removeItem(UserKey)
}
